package net.scdx.hotel.service;

import net.scdx.hotel.dto.UserExecution;
import net.scdx.hotel.entity.User;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    // add user
    UserExecution addUser(User user) throws Exception;

    // find user by username and psw
    UserExecution userLogin(String username, String password) throws Exception;


   // public String userLogout(String username) throws Exception;
    // get user info
    User userInfo(String username) throws Exception;

    List<User> usersInfo(Integer adminId) throws Exception;
    // modift user info
    boolean midifyUser(User user) throws Exception;

    void deleteUserById(Integer userId) throws Exception;

    public User findUserById(Integer userId) throws Exception;

    void saveUser(User user) throws Exception;
}
